package com.linwen.javase.desgin_pattern.structure.decorator;


/**
 * @ClassName Decorator
 * @Description
 * @Author lin
 * @Date 2022/6/21 下午11:51
 * @Version V1.0
 */
public class Decorator implements BaseService {
    private BaseService baseService;

    public Decorator(BaseService baseService){
        this.baseService = baseService;
    }
    @Override
    public void test() {
        baseService.test();
    }
}
